Causes of run-time errors for the Maintained push button
At run time the application logs errors about the Maintained push button to diagnostics under these circumstances:
Invalid values
- If the button’s state value is too large for the data type of the tag assigned to the Value connection, or if the value is outside the assigned tag’s minimum and maximum values, the application does not write the value to the Value connection, the state does not change, and the application logs an error.
For example, the state value is too large for the tag’s data type if your data source is a PLC-5, the state value is 2,147,483,647, and the assigned tag is an integer tag using the address N7:0. Integer tags have a range of -32,768 to 32,767
- If the Indicator connection value does not match any of the state values for the push button, the button displays the error state.
Unassigned connections
- If the Value connection is not assigned, the error state is shown. When an operator presses the button the state does not change and the application logs an error.
See also
About the Maintained push button’s error state
Create Maintained push buttons
Set up controls for the Maintained push button (Connections tab)
Configure the Maintained push button (General tab)
Set up states for the Maintained push button (States tab)
How the Maintained push button works at run time
Example: Use a Maintained push button